package cc.telecomdigital.tdstock.activity;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ScrollView;
import cc.telecomdigital.tdstock.CommonDefn;
import cc.telecomdigital.tdstock.R;
import cc.telecomdigital.tdstock.Framework.Activity_Framework;

/**
 * 免责聲明
 * @author ouyangzhihui
 *
 */
public class DisclaimersActivity extends Activity_Framework
{
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.disclaimers);
		((Button) findViewById(R.id.bid)).setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				SharedPreferences _prefsStockCode = getSharedPreferences(CommonDefn.SYSTEM_CURRENT_SETTING, Context.MODE_PRIVATE);
				if(_prefsStockCode!=null)
				{
					_prefsStockCode.edit().putString(CommonDefn.PREFERENCE_IS_FIRST_LOGON_APP, "false").commit();
				}
				setResult(0);
				finish();
			}
		});
		((ScrollView) findViewById(R.id.scrollview)).setScrollbarFadingEnabled(true);
	}

	@Override
	public void onBackPressed()
	{
		//do nothing
	}
	
	
	
	
}
